package com.sctvcloud.bazhong.beans;

import com.ruihang.generalibrary.ui.util.IListData;
import com.sctvcloud.bazhong.ui.datainf.IColumnData;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.io.Serializable;

/**
 * Created by Administrator on 2017/7/5 0005.
 */
@Table(name = "FocusColumn")
public class FocusColumn implements Serializable, IColumnData {
    private static final long serialVersionUID = -7772526084434808695L;
    @Column(name = "id", autoGen = false, isId = true)
    private int channelId;  //栏目id
    @Column(name = "channelName")
    private String channelName; //栏目名称
    @Column(name = "sort")
    private int sort;   //排序
    @Column(name = "channelUrl")
    private String channelUrl;
    @Column(name = "channelType")
    private String channelType;
    @Column(name = "isChoice")
    private boolean isChoice;
    @Column(name = "time")
    private String time;

    private String liveUrl;

    private int subChannelType;
    private int newsFlashType;

    private int tempPos;

    @Override
    public String getDataTitle() {
        return channelName;
    }

    @Override
    public String getDataImg() {
        return null;
    }

    @Override
    public String getDataTag() {
        return null;
    }

    @Override
    public int getDataType() {
        return 0;
    }

    @Override
    public int getDataViewType() {
        return 0;
    }

    @Override
    public IListData getOwner() {
        return null;
    }

    @Override
    public String getDataId() {
        return channelId + "";
    }

    @Override
    public boolean isSubscribe() {
        return isChoice;
    }

    public FocusColumn setId(int id) {
        this.channelId = id;
        return this;
    }

    public String getChannelName() {
        return channelName;
    }

    public FocusColumn setChannelName(String name) {
        this.channelName = name;
        return this;
    }

    public int getSort() {
        return sort;
    }

    public FocusColumn setSort(int sort) {
        this.sort = sort;
        return this;
    }

    public boolean isChoice() {
        return isChoice;
    }

    public FocusColumn setChoice(boolean choice) {
        isChoice = choice;
        return this;
    }

    public int getChannelId() {
        return channelId;
    }

    public void setChannelId(int channelId) {
        this.channelId = channelId;
    }

    public String getChannelUrl() {
        return channelUrl;
    }

    public void setChannelUrl(String channelUrl) {
        this.channelUrl = channelUrl;
    }

    public String getChannelType() {
        return channelType;
    }

    public void setChannelType(String channelType) {
        this.channelType = channelType;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getSubChannelType() {
        return subChannelType;
    }

    public String getLiveUrl() {
        return liveUrl;
    }

    public void setLiveUrl(String liveUrl) {
        this.liveUrl = liveUrl;
    }

    public void setSubChannelType(int subChannelType) {
        this.subChannelType = subChannelType;
    }

    public int getNewsFlashType() {
        return newsFlashType;
    }

    public FocusColumn setNewsFlashType(int newsFlashType) {
        this.newsFlashType = newsFlashType;
        return this;
    }

    public int getTempPos() {
        return tempPos;
    }

    public void setTempPos(int tempPos) {
        this.tempPos = tempPos;
    }

    @Override
    public String toString() {
        return "FocusColumn{" +
                "channelId=" + channelId +
                ", channelName='" + channelName + '\'' +
                ", sort=" + sort +
                ", channelUrl='" + channelUrl + '\'' +
                ", channelType='" + channelType + '\'' +
                ", isChoice=" + isChoice +
                ", time='" + time + '\'' +
                ", liveUrl='" + liveUrl + '\'' +
                ", subChannelType=" + subChannelType +
                ", newsFlashType=" + newsFlashType +
                '}';
    }
}
